/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gitee.huangjianbo.supos.openapi.spring;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 *
 * @author tomcat
 * @version 1.0
 */
@ConfigurationProperties(prefix = "supos.sdk.httpclient5")
public class SuposApiClientHttpClient5ConfigProperties {

    /**
     * 最大空闲时间
     */
    private Integer maxIdleTime = 60000;
    /**
     * 获取连接超时时间
     */
    private Integer connectionTimeout = 5 * 1000;
    /**
     * 请求响应超时时间
     */
    private Integer responseTimeout = 60 * 1000;
    /**
     * TCP连接超时时间
     */
    private Integer socketTimeout = 15 * 1000;
    /**
     * TCP接收缓冲区大小
     */
    private Integer rcvBufSize = 8 * 1024;
    /**
     * TCP发送缓冲区大小
     */
    private Integer sndBufSize = 8 * 1024;

    public Integer getMaxIdleTime() {
        return maxIdleTime;
    }

    public void setMaxIdleTime(Integer maxIdleTime) {
        this.maxIdleTime = maxIdleTime;
    }

    public Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    public Integer getResponseTimeout() {
        return responseTimeout;
    }

    public void setResponseTimeout(Integer responseTimeout) {
        this.responseTimeout = responseTimeout;
    }

    public Integer getSocketTimeout() {
        return socketTimeout;
    }

    public void setSocketTimeout(Integer socketTimeout) {
        this.socketTimeout = socketTimeout;
    }

    public Integer getRcvBufSize() {
        return rcvBufSize;
    }

    public void setRcvBufSize(Integer rcvBufSize) {
        this.rcvBufSize = rcvBufSize;
    }

    public Integer getSndBufSize() {
        return sndBufSize;
    }

    public void setSndBufSize(Integer sndBufSize) {
        this.sndBufSize = sndBufSize;
    }
}
